Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Fix hostCollection entities #1564

Merged

Conversation

LadislavVasina1
Copy link
Contributor

This PR is part of the fix that is made in SatelliteQE/robottelo#16379
It is 6.15.z specific because in 6.15 when running the install package action via customized REX there is a difference between 6.15 and 6.16 because it uses an old job invocation page that has not been cherry-picked in airgun, so little hacky solution is to hardcode the submit button which can't be found to the entity and submit the prefilled form afterwards. This little fix makes the test work.

Copy link
Contributor

@vsedmik vsedmik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless anyone comes with idea how to avoid the sleep, I'm okay with that.

Comment on lines +113 to +114
submit = self.browser.selenium.find_element(By.XPATH, './/input[@value="Submit"]')
submit.click()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to move selenium specific code in airgun/views/hostcollection.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that I would have to create new subclass just for this one "back ported" change, which is not necessary imo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

Comment on lines +113 to +114
submit = self.browser.selenium.find_element(By.XPATH, './/input[@value="Submit"]')
submit.click()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@vijaysawant vijaysawant merged commit 03628d1 into SatelliteQE:6.15.z Sep 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants